package com.cn.ysf.newbeemall.mapper;

import com.cn.ysf.newbeemall.pojo.TbNewbeeMallGoodsCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewbeeGoodsCategoryMapper {

    /**
     * 根据商品分类的主键Id查询分类商品
     * @param categoryId
     * @return
     */
    TbNewbeeMallGoodsCategory selectByPrimaryKey(Long categoryId);


    TbNewbeeMallGoodsCategory selectByLevelAndName(@Param("categoryLevel") Long categoryLevel, @Param("categoryName") String categoryName);


    List<TbNewbeeMallGoodsCategory> selectByLevelAndParentIdsAndNumber(@Param("parentIds") List<Long> parentIds, @Param("categoryLevel") Long categoryLevel, @Param("number") Long number);

}
